import axios from 'axios'

export function request(config) { 
    //创建axios实例
    const instance = axios.create({
      baseURL: './API',
      timeout: 3000
    })
    //发送网络请求
    return instance(config)
  }